#include <iostream>
#include <string>
//#include "CL_News.h"
#include "CL_RSS_Quelle.h"
#include "CL_News_pool.h"

using namespace std;

int main()
{
    std::string s1;
    CL_News_pool& pool=CL_News_pool::get_news_pool();

    CL_RSS_Quelle test("http://www.spiegel.de/schlagzeilen/tops/index.rss");
    newsmap mymap;
    mymap+=test;
    for(std::map<std::size_t, CL_News>::iterator it=mymap.begin();it!=mymap.end();it++)
    {
        cout<<"Titel:"<<endl<<it->second.newsitem.title<<endl<<"Description:"<<endl<<it->second.newsitem.description<<endl<<endl;
    };


//     cout<<endl<<endl<<"Anzahl: "<<anz<<endl;
//    cout << s1 << endl;

    return 0;
}
